Adwaita: tone down suggested focus ring for dark
authorJakub Steiner <jimmac@gmail.com>
Wed, 6 May 2020 17:02:19 +0000 (19:02 +0200)
committerJakub Steiner <jimmac@gmail.com>
Wed, 6 May 2020 17:14:19 +0000 (19:14 +0200)
gtk/theme/Adwaita/_colors.scss
gtk/theme/Adwaita/_common.scss

index 6c7f211ad123ae9fd38d154bb4433f0e7d3222df..be1215d795cf6fa0de7f88fd5f417d49e4775903 100644 (file)
@@ -77,4 +77,4 @@ $checkradio_bg_color: if($variant == 'light', $selected_bg_color, lighten($selec
 $checkradio_fg_color: $selected_fg_color;
 $checkradio_borders_color: if($variant == 'light', darken($checkradio_bg_color,20%), darken($checkradio_bg_color,40%));
 $focus_border_color: if($variant == 'light', transparentize($selected_bg_color, 0.5), transparentize($selected_bg_color, 0.3));
-$alt_focus_border_color: transparentize(white, 0.5);
+$alt_focus_border_color: if($variant == 'light', transparentize(white, 0.2), transparentize(white,0.7));
index 894e9a51deeafe6266182d9a8a2b610e09f530cb..6b5d9f5c10b341cc1a97d978e5fdc10d8165334c 100644 (file)
@@ -342,7 +342,7 @@ entry {
       &.#{$e_type} {
         color: $e_color;
 
-        @include focus-ring($within: true, $fc: $e_color);
+        @include focus-ring($within: true, $fc: transparentize($e_color, 0.5));
 
         &:focus-within { @include entry(focus, $e_color); }
 
@@ -676,7 +676,7 @@ button {
                              (destructive-action, $destructive_color) {
     &.#{$b_type} {
       @include button(normal, $b_color, white);
-      @include focus-ring($fc: transparentize(white,0.1));
+      @include focus-ring($fc: $alt_focus_border_color);
 
       &.flat {
         @include button(undecorated);